package com.fengzai.demo.integration;

import com.fengzai.demo.facade.HelloFacade;
import com.fengzai.netty.rpc.annotation.RpcService;

/**
 * @PACKAGE_NAME: com.fengzai.demo.integration
 * @author: rhf
 * @ProjectName: netty
 * @DATE: 2021/11/4
 **/
@RpcService
public class HelloFacadeImpl implements HelloFacade {
    @Override
    public void sayHello1() {
        System.out.println("进入sayHello1");
    }

    @Override
    public void sayHello2(String x) {
        System.out.println("进入sayHello2， 参数:"+x);

    }

    @Override
    public String sayHello3() {
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("进入sayHello3");
        return "sayHello3";
    }

    @Override
    public String sayHello4(String x) {
        System.out.println("进入sayHello4， 参数:"+x);
        return "sayHello4";    }
}
